import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:guochaoapp/common/widges/appbar.dart';
import 'package:guochaoapp/controller/shopping/order_detail_controller.dart';

import '../../r.dart';

class GCOrderReturnPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: GCAppBar(
          titleText: "申请退货",
          backTap: () {
            Get.back();
            GCOrderDetailController detailController = Get.find();
            detailController.requestInitData(detailController.orderDetail.value.mallOrderNo);
          },
        ),
        body: _initSubviews());
  }

  _initSubviews() {
    return Column(
      children: [
        SizedBox(height: 75),
        Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Image.asset(R.assetsIconSuccess, height: 43, width: 43),
            SizedBox(width: 11),
            Text("申请已提交", style: TextStyle(fontSize: 24))
          ],
        ),
        SizedBox(height: 43),
        Center(
          child: Text("请拨打以下联系方式进行线下验收取货"),
        ),
        SizedBox(height: 112),
        Container(
            margin: EdgeInsets.only(left: 33, right: 33),
            height: 105,
            child: DottedBorder(
              dashPattern: [3, 3, 3, 3],
              color: Colors.black54,
              strokeWidth: 1,
              child: Column(
                children: [
                  SizedBox(height: 15),
                  Center(
                    child: Text("果巢商城售后服务热线",
                        style: TextStyle(
                            color: Color(0xFF333333),
                            fontWeight: FontWeight.w200)),
                  ),
                  SizedBox(height: 10),
                  Center(
                    child: Text("021-58827165",
                        style: TextStyle(
                            color: Color(0xFFF75554),
                            fontSize: 30,
                            fontWeight: FontWeight.bold)),
                  ),
                  Expanded(child: SizedBox()),
                  Container(
                    height: ScreenUtil().setSp(4),
                    child: Image.asset(R.assetsIconSettleDividingLine,
                        fit: BoxFit.cover),
                  )
                ],
              ),
            ))
      ],
    );
  }
}
